import request from '@/utils/request'

// 新增报检单
export function SubmitInspection(data){
	return request({
		url: '/api/Business/inspection',
		method: 'post',
		data
	})
}

// 获取报检单
export function GetInspection(data){
	return request({
		url: '/api/Business/inspection',
		method: 'get',
		data
	})
}

// 确认报检单
export function ConfirmInspectionByCode(code){
	return request({
		url:'/api/Business/inspection/Confirm/' + code,
		method:	'post'
	})
}

// 删除报检单
export function DeleteInspectionById(id){
	return request({
		url:'/api/Business/inspection/' + id,
		method: 'delete'
	})
}

// 合批报检单
export function CombineBatch(data){
	return request({
		url:'/api/Business/inspection/CombineBatch',
		method:'post',
		data
	})
}

// 获取所有物料信息
export function GetMaterialGroup(){
	return request({
		url:'/api/BaseData/material/All',
		method:'get'
	})
}

// 获取供应商组
export function GetSupplier(){
	return request({
		url:'/api/BaseData/supplier/All',
		method:'get'
	})
}

// 获取检验类型
export function GetInspectType(){
	return request({
		url:'/api/system/dictionarydata/458162035063023429/Data/Selector',
		method:'get'
	})
}
